#!/bin/bash

function view_file(){
	sys_name=`uname -s`
	if [[ ${sys_name} == 'Linux' ]]; then
		xdg-open ${1}
	elif [[ ${sys_name} == 'Darwin' ]]; then
		open ${1}
	fi
}